<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function setName(obj) {
        obj.name="调用了Name";
        console.log(per.name);
        obj=new obje();
        obj.name='test';
        console.log(per.name);
    }
    function obje() {

    }
    var per=new obje();
    setName(per)
    console.log(per.name);
</script>
</body>
</html>